import Vue from 'vue'
import App from './App.vue'
import router from '@/router'
import TypeNav from '@/components/TypeNav'
import Carousel from '@/components/carousel'
import Pagination from '@/components/pagination'
import store from '@/store'
import '@/mock/mockServe'
import 'swiper/css/swiper.css'
import { reqCategoryList } from '@/api'

Vue.config.productionTip = false
reqCategoryList()
Vue.component(TypeNav.name, TypeNav)
Vue.component(Carousel.name, Carousel)
Vue.component(Pagination.name, Pagination)
new Vue({
    render: h => h(App),
    beforeCreate() {
        Vue.prototype.$bus = this
    },
    router,
    store
}).$mount('#app')